package model

// import "gorm.io/gorm"

type User struct {
	ID          uint   `json:"id" form:"id" gorm:"unique; not null; type:uint; primaryKey;autoIncrement"`
	Email       string `json:"email" form:"email" gorm:"unique;not null;type:varchar(20);"`
	PassWord    string `json:"password" form:"password" gorm:"not null; type:varchar(20)"`
	PenName     string `json:"penname" form:"penname" gorm:"type:varchar(12)"`
	Books       []Book `json:"books"`
	Permissions string `json:"permissions" gorm:"type:string"`
}
